package com.mes.code.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.common.domain.BasicModel;


/**
 * CCodehistory generated by MyEclipse Persistence Tools
 *author lcs
 *data 2017-03-29
 */
@Entity()
//@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Table(name = "C_CODEHISTORY")
@BatchSize(size=10)
@Lazy(value=true)
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class CodeHistory extends BasicModel implements Serializable {
	
	@Id
	@GenericGenerator(name = "chUid", strategy = "assigned")
	@Column(name = "CHUID")
	private String chUid;
	
	public String getChUid() {
		return chUid;
	}

	public void setChUid(String chUid) {
		this.chUid = chUid;
	}

	@Column(name="GENCODE",length=50)
	private String generatedCode;
	
	@Column(name="CLASS_UID",length=50)
	private String classUid;
	
	@Column(name="APPLYDOMAIN",length=100)
	private String applyDomain;
	
	@Column(name="APPLYIP",length=50)
	private String applyIp;
	
	@Column(name="APPLYDEPT",length=100)
	private String applyDeptId;
	
	@Column(name="APPLYEMPLOYEEID",length=100)
	private String applyEmployeeId;
	
	@Column(name="APPLYTIME",length=7)
	private Date applyTime;
	
	@Column(name="RETURNTIME",length=7)
	private Date returnTime;
	
	@Column(name="FEATURES",length=500)
	private String features;
	
	@Column(name="ERROR_CODE",length=500)
	private String errorCode;
	
	@Override
	public String getUuid() {
		return this.getClassUid();
	}

	@Override
	public void setUuid(String uuid) {
		this.setClassUid(uuid);
	}

	public String getFeatures() {
		return features;
	}

	public void setFeatures(String features) {
		this.features = features;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getGeneratedCode() {
		return generatedCode;
	}

	public void setGeneratedCode(String generatedCode) {
		this.generatedCode = generatedCode;
	}

	public String getApplyDomain() {
		return applyDomain;
	}

	public void setApplyDomain(String applyDomain) {
		this.applyDomain = applyDomain;
	}

	public String getApplyIp() {
		return applyIp;
	}

	public void setApplyIp(String applyIp) {
		this.applyIp = applyIp;
	}

	public String getApplyEmployeeId() {
		return applyEmployeeId;
	}

	public void setApplyEmployeeId(String applyEmployeeId) {
		this.applyEmployeeId = applyEmployeeId;
	}

	public Date getApplyTime() {
		return applyTime;
	}

	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}

	public Date getReturnTime() {
		return returnTime;
	}

	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}

	public String getApplyDeptId() {
		return applyDeptId;
	}

	public void setApplyDeptId(String applyDeptId) {
		this.applyDeptId = applyDeptId;
	}

	public String getClassUid() {
		return classUid;
	}

	public void setClassUid(String classUid) {
		this.classUid = classUid;
	}

}